/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package reloj.modelo;

import java.io.Serializable;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import javax.persistence.ManyToOne;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author InnoVajairo
 */
@Entity
public class Marcacion implements Serializable{

    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    @Column (nullable=false)
    private int id;

    @Temporal(TemporalType.DATE)
    private Date fecha;
    
    @Temporal(TemporalType.TIME)
    private Date hora;
    
    @ManyToOne   
    private Personal personal;
    

    public Date getFecha() {        
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Personal getPersonal() {
        return personal;
    }

    public void setPersonal(Personal personal) {
        this.personal = personal;
    }

    public Date getHora() {
        return hora;
    }

    public void setHora(Date hora) {
        this.hora = hora;
    }         

}
